import request from "../utils/request";
// 注册接口
export function RegApi(data) {
    return request("/Handler/UserHandler.ashx?action=add", "post", data)
}
// 登录接口
export function LoginApi(data) {
    return request("/Handler/UserHandler.ashx?action=login", "post", data)
}
// 判断是否登录的接口
export function isLogin(userName) {
    return request("/Handler/UserHandler.ashx?action=isLogin", "post", { userName: userName })
}
// 获取个人信息接口
export function getUserinfo(userName) {
    return request("/Handler/OnCourseHandler.ashx?action=returnuserinfo", "get", { userName: userName })
}
// 退出登录
export function quitApi(userName) {
    return request("/Handler/UserHandler.ashx?action=quit", "post", { userName: userName })
}